<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>文件上传</title>
</head>
{% from 'macros.html' import basic_form_field  %}

<body>
    <h1>文件上传</h1>
    <form method="post" enctype="multipart/form-data">
        {{ form.csrf_token }}
        {{ basic_form_field(form.photo) }}
        {{ form.submit}}
    </form>
    <hr>
    {# 显示 Flash Message #}
    {% for msg in get_flashed_messages() %}
    <div style="color: red;">{{ msg }}</div>
    {% endfor %}

</body>

</html>